﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace Payment.API.Model
{
    public class PaymentLog 
    {
        public int Id { get; private set; }

        public string OrderId { get; set; }

        public int Status { get; set; }

        public DateTime CreateTime { get; set; }

        public string UserId { get; set; }
        /// <summary>
        /// 
        /// </summary>
        /// <param name="orderId"></param>
        /// <param name="status">0:支付，1:取消，</param>
        /// <param name="userId"></param>
        public PaymentLog(string orderId,int status,string userId)
        {
            this.OrderId = orderId;
            this.Status = status;
            this.CreateTime = DateTime.Now;
            this.UserId = userId;
        }
    }
}
